<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
        	<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="Widget/Validform/5.3.2/Validform.min.js"></script>
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
        <script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>
		<script src="js/lrtk.js" type="text/javascript" ></script>
	    <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>物流信息更新</title>

</head>

<body>
	
<div class="margin clearfix">
 <div class="stystems_style">
  <div class="tabbable">
  <div class="page-content clearfix">
    <div id="Member_Ratings">
      <!--<div class="d_Confirm_Order_style">
	<ul class="nav nav-tabs" id="myTab">
	  <li class="active">
		<a data-toggle="tab" href="#home"><i class="green fa fa-home bigger-110"></i>物流信息更新</a></li>
	</ul>
	</div>-->
	<br/>
	 <label class="label_name" >物流单号：</label><span class="add_name"><input value="" name="物流单号" type="text"  class="text_add"/></span>
	 <label class="label_name" style="margin-left:80px;">物流公司：</label><span class="add_name"><select name='sldd' style='width:200px'>
		<option value='' selected>全部</option>
		<option value=''>本公司车辆</option>
		<option value=''>顺丰</option>
		<option value=''>中通</option>
    </select></span>
	 <label class="label_name" style="margin-left:80px;">订单状态：</label><span class="add_name"><select name='sldd' style='width:200px'>
		<option value='' selected>全部</option>
		<option value=''>未发货</option>
		<option value=''>已发货</option>
    </select></span>  <br/><br/>
     <label class="label_name">订单编号：</label><span class="add_name"><input name="订单编号" type="text"  class="text_add"/></span>
     <label class="label_name" style="margin-left:80px;">出货仓库：</label><span class="add_name"><select name='sldd' style='width:200px'>
		<option value='' selected>全部</option>
		<option value=''>杭州仓</option>
		<option value=''>南京仓</option>
		<option value=''>武汉仓</option>
    </select></span>
	<label class="label_name" style="margin-left:80px;">物流车牌号：</label><span class="add_name"><input name="物流车牌号" type="text"  class="text_add"/></span>
	<br/><br/>
     <label class="label_name">会员名称：</label><span class="add_name"><input name="会员名称" type="text"  class="text_add"/></span>
	 <label class="label_name" style="margin-left:80px;">发货时间：</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"/><label class="label_name">&nbsp;—</label><input class="inline laydate-icon" id="end" style="margin-left:10px;"/><br/><br/>
	 <button onclick="article_save_submit();" class="btn btn-primary radius" type="submit" style="margin-left:80px;"><i class="icon-search"></i>&nbsp;搜索订单</button>	
	 <br/>
	 <br/>
	 <h5 style="float:right;">【物流信息更新/查看】<span style="color:red">注意：双击更新物流信息，单击查看。</span></h5>	 

	 <!---->
	<div class="tab-content">				
	 <div id="home" class="tab-pane active">						
         <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
				<th width="50">序号</th>
				<th width="100">订单编号</th>
				<th width="80">订单状态</th>
				<th width="80">签收状态</th>
				<th width="80">会员名</th>		
				<th width="80">物流单号</th>
				<th width="100">物流公司</th>
				<th width="70">出货仓库</th>
				<th width="80">司机姓名</th>
				<th width="100">司机电话</th>
				<th width="80">物流车牌号</th>
				<th width="80">收货人</th>
				<th width="100">收货地址</th>
				<th width="120">发货时间</th>
				<th width="100">订单备注</th>
				<th width="120">操作</th>
			</tr>
		</thead>
	<tbody>
		<tr>
		  <td>1</td>
          <td>201608080001</td>
          <td style="color:red">已发货</td>
		  <td style="color:red">已签收</td>
          <td>阿里巴巴</td>
		  <td>561561512</td>
          <td>公司自有车辆</td>
		  <td>杭州仓</td>
		  <td>张三</td>
		  <td>15654581785</td>
		  <td>鄂A5615</td>
		  <td>赵四</td>
		  <td>江苏省南京是</td>
		  <td>2016-06-22 15:19</td>
		  <td>快速发货！</td>
		  <td class="td-manage">
          <a title="物流信息更新/查看" class="wuliu_c btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">物流信息更新/查看</i></a>
          </td>
		</tr>
		<tr style="display:none">
		  <td colspan="15" align="center">
       			 <table align="center">
				<thead>
		 		<tr>
				<th width="200">时间</th>
				<th width="500">地点和跟踪进度</th>
				</tr>
			</thead>
			<tbody>
				<tr>
				  <td>2016-12-12 15:12:45</td>
				  <td>江苏省南京市XXX路 【司机 李四 18715152115 鄂A5615】【已签收】</td>
				</tr>
				<tr>
				<tr>
				  <td>2016-12-12 15:12:45</td>
				  <td>江苏省南京市XXX路 【换车1】【司机 李四 18715152115 鄂A5615】</td>
				</tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>浙江省杭州市XXX路 【初始】【司机 张三 1565458785 鄂A5615】</td>
				</tr>
				  </td>
				  </tbody>
				  </table>
		</tr>
        <tr>
		  <td>2</td>
          <td>201608080002</td>
          <td style="color:red">已发货</td>
		  <td style="color:red">未签收</td>
          <td>雅迪</td>
		  <td>561561513</td>
          <td>公司自有车辆</td>
		  <td>杭州仓</td>
		  <td>赵四四</td>
		  <td>17845455524</td>
		  <td>鄂A5513</td>
		  <td>王五五</td>
		  <td>上海市松江区</td>
		  <td>2016-06-22 15:19</td>
		  <td>快速发货！</td>
		  <td class="td-manage">
          <a title="物流信息更新/查看" class="wuliu_c btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">物流信息更新/查看</i></a>
          </td>
		</tr>
		<tr style="display:none">
		  <td colspan="15" align="center">
       			 <table align="center">
				<thead>
		 		<tr>
				<th width="200">时间</th>
				<th width="500">地点和跟踪进度</th>
				</tr>
			</thead>
			<tbody>	
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>江苏省南京市XXX路 【司机 赵四四 178454554524 浙A5415】</td>
				</tr>
				<tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>江苏省徐州市XXX路 【司机 赵四四 178454554524 浙A5415】</td>
				</tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>浙江省杭州市XXX路 【司机 赵四四 178454554524 浙A5415】</td>
				</tr>
				  </td>
				  </tbody>
				  </table>
		</tr>
        <tr>
		  <td>3</td>
          <td>201608080003</td>
          <td style="color:red">已发货</td>
		  <td style="color:red">未签收</td>
          <td>绿源</td>
		  <td>561561512</td>
          <td>公司自有车辆</td>
		  <td>武汉仓</td>
		  <td>张三三</td>
		  <td>18956569884</td>
		  <td>鄂A5999</td>
		  <td>李四四</td>
		  <td>安徽省合肥市</td>
		  <td>2016-06-22 15:19</td>
		  <td>快速发货！</td>
		  <td class="td-manage">
          <a title="物流信息更新/查看" class="wuliu_c btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">物流信息更新/查看</i></a>
          </td>
		</tr>
		<tr style="display:none">
		  <td colspan="15" align="center">
       			 <table align="center">
				<thead>
		 		<tr>
				<th width="200">时间</th>
				<th width="500">地点和跟踪进度</th>
				</tr>
			</thead>
			<tbody>
				<tr>
				  <td>2016-12-12 15:12:45</td>
				  <td>安徽省合肥市XXX路 【司机 张三三 18956569884 浙A5415】</td>
				</tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>湖北省武汉市XXX路 【司机 张三三 18956569884 浙A5415】</td>
				</tr>
				  </td>
				  </tbody>
				  </table>
		</tr>
        <tr>
		  <td>4</td>
          <td>201608080004</td>
          <td style="color:red">已发货</td>
		  <td style="color:red">未签收</td>
          <td>小米</td>
		  <td>561561515</td>
          <td>顺丰</td>
		  <td>杭州仓</td>
		  <td>李顺丰</td>
		  <td>15565457878</td>
		  <td>浙A8989</td>
		  <td>赵溜溜</td>
		  <td>河南省南阳市</td>
		  <td>2016-06-22 15:19</td>
		  <td>快速发货！</td>
		  <td class="td-manage">
          <a title="物流信息更新/查看" class="wuliu_c btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">物流信息更新/查看</i></a>
          </td>
		</tr>
		<tr style="display:none">
		  <td colspan="15" align="center">
       			 <table align="center">
				<thead>
		 		<tr>
				<th width="200">时间</th>
				<th width="500">地点和跟踪进度</th>
				</tr>
			</thead>
			<tbody>
				<tr>
				  <td>2016-12-12 15:12:45</td>
				  <td>河南省南阳市XXX路 【司机 李顺丰 15854545454 浙A5415】</td>
				</tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>浙江省杭州市XXX路 【司机 李顺丰 15854545454 浙A5415】</td>
				</tr>
				  </td>
				  </tbody>
				  </table>
		</tr>
         <tr>
		  <td>5</td>
          <td>201608080005</td>
          <td style="color:red">已发货</td>
		  <td style="color:red">已签收</td>
          <td>小刀</td>
		  <td>561561512</td>
          <td>顺丰</td>
		  <td>杭州仓</td>
		  <td>风飒飒</td>
		  <td>15854545454</td>
		  <td>鄂A4444</td>
		  <td>邓尼赖</td>
		  <td>江苏省苏州市</td>
		  <td>2016-06-22 15:19</td>
		  <td>快速发货！</td>
		  <td class="td-manage">
          <a title="物流信息更新/查看" class="wuliu_c btn btn-xs btn-info" ><i class="bigger-10" style="fout-size:5">物流信息更新/查看</i></a>
          </td>
		</tr>
		<tr style="display:none">
		  <td colspan="15" align="center">
       			 <table align="center">
				<thead>
		 		<tr>
				<th width="200">时间</th>
				<th width="500">地点和跟踪进度</th>
				</tr>
			</thead>
			<tbody>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>江苏省苏州市XXX路 【司机：风飒飒 15565457878 鄂A4444】【已签收】</td>
				</tr>
				<tr>
				<tr>
				  <td>2016-12-12 15:12:45</td>
				  <td>江苏省南京市XXX路 【司机：风飒飒 15565457878 鄂A4444】</td>
				</tr>
				<tr>
				  <td>2016-12-13 15:12:45</td>
				  <td>浙江省杭州市XXX路 【司机：风飒飒 15565457878 鄂A4444】</td>
				</tr>
				  </td>
				  </tbody>
				  </table>
		</tr>
		
		 <!--解决双击按钮与单击按钮重叠问题-->
		<script>
		//jQuery(function($) {
		//$("tbody tr .wuliu_c").on('click',function(){
		//$(this).parent().parent().next().toggle();
		//});
		//});
		var TimeFn=null;
		$('tbody tr .wuliu_c').click(function () {
    // 取消上次延时未执行的方法
    clearTimeout(TimeFn);
    //执行延时
	var that=$(this);
    TimeFn = setTimeout(function(){
        //do function在此处写单击事件要执行的代码
		that.parent().parent().next().toggle();
    },300);
});

$('tbody tr .wuliu_c').dblclick(function(){
     // 取消上次延时未执行的方法
    clearTimeout(TimeFn);
    //双击事件的执行代码
	member_fh();
})
		</script>
      </tbody>
	</table>
</div>
</div>
	<div style="position: absolute;right: 85px;">
	
  <br/>
  <br/>
  <br/>
  <br/>
 </div>
 <!--录入物流信息图层-->
<div class="add_menber" id="add_menber_style" style="display:none">
  
    <ul class=" page-content">
     <label class="label_name">时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间：</label><span   class="add_name"><input value="" name="时间" class="text_add" id="localtime"/></span><br/><br/>
     <label class="label_name" >地点跟踪进度：</label><span class="add_name"><textarea id="txtCon" rows="10" cols="50" placeholder="需填写：地址【司机姓名+手机号+车牌号】，如更换运输车辆需提示！" name="地点跟踪进度"></textarea></span><br/>
	 <label class="label_name">签收状态：</label><span class="add_name">
     <label><input name="form-field-radio1" type="radio" class="ace"><span class="lbl">已签收</span></label>&nbsp;&nbsp;&nbsp;
     <label><input name="form-field-radio1"type="radio" checked="checked" class="ace"><span class="lbl">未签收</span></label></span>
    </ul>
 </div>
 </div>
		</div>
		</div>
 </div>
</div>
</body>
</html>
<!--自动获取当前时间-->
<script type="text/javascript"> 
 var oTable1 = $('#sample-table').dataTable({
            "aaSorting": [[0, "desc"]],//默认第几个排序
            "bStateSave": true,//状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {"orderable": false, "aTargets": [0]}// 制定列不参与排序
            ]
        });
function showLocale(objD)    
{       
 var str,colorhead;       
 var yy = objD.getYear();        
 if(yy<1900) yy = yy+1900;       
  var MM = objD.getMonth()+1;        
  if(MM<10) MM = '0' + MM;        
  var dd = objD.getDate();       
   if(dd<10) dd = '0' + dd;        
   var hh = objD.getHours();       
    if(hh<10) hh = '0' + hh;        
	var mm = objD.getMinutes();       
	 if(mm<10) mm = '0' + mm;        
	 var ss = objD.getSeconds();        
	 if(ss<10) ss = '0' + ss;  
	       
	  str = yy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + " " ;        
	  return(str);    
	  }  
function tick()    
{        
var today;        
	  today = new Date();        
	  console.log(showLocale(today))
	  document.getElementById("localtime").value = showLocale(today); 
	     
}    
	  tick();
</script>
<script>
jQuery(function($) {
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})

/*录入物流信息*/
function member_fh(id){
	  layer.open({
        type: 1,
        title: '录入物流信息',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['800px' , ''],
        content:$('#add_menber_style'),
		btn:['确认录入','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('录入成功！',{
               title: '提示框',				
			icon:1,		
			  });
			   layer.close(index);	
		  }		  		     				
		}
    });
}
/*用户-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
 laydate({
    elem: '#start',
    event: 'focus' 
});
laydate({
    elem: '#end',
    event: 'focus' 
});
</script>
